import { Connect } from './util/webscoket.js';
import { login } from './api/user.js';

async function main() {
    const { data } = await login('player1', '123456');
    if (data) {
        const { players, token } = data;
        
        const ws = new Connect({
            url: 'ws://localhost:10024',
            param: {
                token,
            }
        })
        await ws.connect();
    }

};

main();

class Net {
    
}